package com.example.work4.data

import android.annotation.SuppressLint
import android.content.Context
import android.content.res.Resources
import android.graphics.BitmapFactory
import com.baidu.mapapi.map.MyLocationData
import com.example.work4.R
import com.example.work4.po.Moments
import com.example.work4.po.MyLocation
import com.example.work4.po.UserInfo

@SuppressLint("StaticFieldLeak")
object MomentsUtil {


//    var location1=MyLocation(31.204636,121.589507,"产业园")
//    var location2=MyLocation(31.214636,121.589507,"产业园")
//    var location3=MyLocation(31.224636,121.589507,"产业园")
//
//    var user:UserInfo=UserInfo()
//    var mom1=Moments("123","t1","123","text1","123", location1)
//    var mom2=Moments("1234","t2","123","text2","123", location2)
//    var mom3=Moments("1235","t3","123","text3","123", location3)
    var momentsList:ArrayList<Moments> = ArrayList();

    fun init(context: Context?) {
//        mom1.avatar=BitmapFactory.decodeResource(context?.resources, R.mipmap.bear)
//        mom1.image=BitmapFactory.decodeResource(context?.resources, R.mipmap.bear)
//        mom2.avatar=BitmapFactory.decodeResource(context?.resources, R.mipmap.bear)
//        mom2.image=BitmapFactory.decodeResource(context?.resources, R.mipmap.bear)
//        mom3.avatar=BitmapFactory.decodeResource(context?.resources, R.mipmap.bear)
//        mom3.image=BitmapFactory.decodeResource(context?.resources, R.mipmap.bear)
//        momentsList.add(mom1)
//        momentsList.add(mom2)
//        momentsList.add(mom3)
    }

}